/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: GodK
 * Date: 2024-04-27
 * Time: 16:00
 */
public class Test {
    public static void main(String[] args) {
//        int[] cost = new int[]{1,100,1,1,1,100,1,1,100,1};
//        int n = cost.length;
//        int[] dp = new int[n+1];
//        int i = 2;
//        for (; i <= n; i++) {
//            dp[i] = Math.min(dp[i-1] + cost [i-1] ,dp[i-2] + cost [i-2] );
//        }
//        System.out.println(dp[n]);
        Solution solution = new Solution();
        System.out.println(solution.calculate("-(1-(4+5-2)+3)-(6+8)"));
    }
}
